package com.crm.system.service.worklog;

import com.crm.common.model.DhPageInfo;
import com.crm.model.entity.worklog.WorkLog;
import com.crm.model.qo.worklog.WorkLogQO;
import com.crm.model.vo.worklog.WorkLogAddVO;
import com.crm.model.vo.worklog.WorkLogQueryVO;

public interface WorkLogService {




    /**
     * @Description: 查询工作日志列表
     * @Param: [pageIndex, pageSize, sortName, sortOrder, workLogQO]
     * @Return: com.crm.common.model.DataResponse
     * @Author: lixq-f
     * @Date: 2021/6/25
     **/
    DhPageInfo<WorkLogQueryVO> selectWorkLogListByPage(Integer pageIndex,
                                                       Integer pageSize,
                                                       String sortName,
                                                       String sortOrder, WorkLogQO workLogQO);

    /**
     * @Description: 添加工作日志
     * @Param: [workLogVO]
     * @Return: com.crm.common.model.DataResponse
     * @Author: lixq-f
     * @Date: 2021/6/25
     **/
    Boolean addWorkLog(WorkLogAddVO workLogVO);


    /**
     * @Description: 编辑工作日志
     * @Param: [workLogVO]
     * @Return: com.crm.common.model.DataResponse
     * @Author: lixq-f
     * @Date: 2021/6/25
     **/
    Boolean updateWorkLog(WorkLogAddVO workLogVO);


    /**
     * @Description: 删除日志
     * @Param: [logId]
     * @Return: com.crm.common.model.DataResponse
     * @Author: lixq-f
     * @Date: 2021/6/25
     **/
    Boolean deleteById(String logId);


    WorkLogQueryVO getLogById(String logId);

}
